<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Reset the Apache write timer</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.apache-request-headers.html">apache_request_headers</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.apache-response-headers.html">apache_response_headers</a></div>
 <div class="up"><a href="ref.apache.html">Apache 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.apache-reset-timeout" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">apache_reset_timeout</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.1.0)</p><p class="refpurpose"><span class="refname">apache_reset_timeout</span> &mdash; <span class="dc-title">Reset the Apache write timer</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.apache-reset-timeout-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>apache_reset_timeout</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
   <span class="function"><strong>apache_reset_timeout()</strong></span> resets the Apache write timer,
   which defaults to 300 seconds. With <em>set_time_limit(0);
   ignore_user_abort(true)</em> and periodic
   <span class="function"><strong>apache_reset_timeout()</strong></span> calls, Apache can theoretically
   run forever.
  </p>
  <p class="para">
   This function requires Apache 1.
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.apache-reset-timeout-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code>TRUE</code></strong>， 或者在失败时返回 <strong><code>FALSE</code></strong>。
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.apache-reset-timeout-notes">
  <h3 class="title">注释</h3>
  <blockquote class="note"><p><strong class="note">Note</strong>: <span class="simpara">当 PHP 运行在 <a href="features.safe-mode.html" class="link">安全模式</a> 时，不能使用此函数。</span></p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.apache-reset-timeout-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.set-time-limit.html" class="function" rel="rdfs-seeAlso">set_time_limit()</a> - 设置脚本最大执行时间</span></li>
    <li class="member"><span class="function"><a href="function.ignore-user-abort.html" class="function" rel="rdfs-seeAlso">ignore_user_abort()</a> - 设置客户端断开连接时是否中断脚本的执行</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.apache-request-headers.html">apache_request_headers</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.apache-response-headers.html">apache_response_headers</a></div>
 <div class="up"><a href="ref.apache.html">Apache 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
